<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <title>审核历史</title>
    <link rel="stylesheet" href="./css/history.css">
    <script src="js/flexible.js"></script>
</head>

<body>
    <div id="app" v-cloak>
        <div class="header">
            <div class="headerItem" v-for='(item,index) in historyList ' :key="index" >
                <div class="headerItems">

               
                <div class="headerItem_one" v-for="(e,i) in item" :key="i">
                    <div class="headerItem_one_left">
                        <div class="setion_left">
                            <div class="setion_left_top" >
                                {{i + 1}}
                            </div>
                            <div class="setion_left_botton" v-if="e.oneFlag" >

                            </div>
                        </div>
                        <div class="setion_right">
                            <div class="setion_right_name" >{{ e.auditBy }}</div>
                            <div >{{ e.ouName }}</div>
                            <div >{{utils.formatTimeEn(e.auditTime)  }} </div>
                            <div v-if="e.auditOpinion" style="color: #656565;">
                               意见： {{e.auditOpinion}}
                            </div>
                        </div>
                    </div>
                    <div class="headerItem_one_right">
                        
                        <div v-if="e.auditNode == 2">用户提审</div>
                        <div  v-if="(e.auditNode == 3) && (e.auditStatus == 1)" style="color: rgb(57, 95, 245);">一审通过</div>
                        <div  v-if="(e.auditNode == 4) && (e.auditStatus == 1)" style="color: rgb(57, 95, 245);">二审通过</div>
                        <div  v-if=" (e.auditNode == 5 || e.auditNode == 6) && (e.auditStatus == 1)"
                        style="color: rgb(57, 95, 245);">三审通过</div>
                        <div v-if=" e.auditNode == 7 && (e.auditStatus == 1)"
                        style="color: rgb(57, 95, 245);">提及审核通过</div>
                        <div v-if="(e.auditNode == 3)&& (e.auditStatus == 0)" style="color: red;">一审驳回</span>
                        <div v-if=" e.auditNode == 4 && (e.auditStatus == 0)" style="color: red;">二审驳回</span>
                        <div v-if=" (e.auditNode == 5 || e.auditNode == 6)  && (e.auditStatus == 0)"
                            style="color: red;">三审驳回</div>
                        <div v-if=" e.auditNode == 7 && (e.auditStatus == 0)" style="color: red;">提及审核驳回</span>
                       
                    </div>
                    
                </div>
            </div>
            </div>
        </div>
    </div>
</body>
<script src="js/vue.min.js"></script>
<script src="js/utils.js?v=2"></script>
<script src="js/axios.min.js"></script>
<script src="js/jquery-3.3.0.min.js"></script>
<script>
    new Vue({
        el: '#app',
        data() {
            return {
                historyList: [],
                fatherId: ''
            }

        },
        created() {
            let MAToken = utils.getMaToken();
            if (utils.isEmpty(MAToken)) {
                return;
            }
            utils.customDialog.init()

            this.fatherId = utils.getQueryString("id")
            axios({
                url: utils.baseUrl + 'mediaAudit/getAuditHistory',
                method: 'get',
                headers: {
                    MAToken: MAToken
                },
                params: {
                    id: this.fatherId,
                }
            }).then((res) => {
                this.historyList = res.data.result.mapList;
                this.historyList.map(item => {
                    for (var i = 0; (item.length) > i; i++) {
                        if ((item.length - 1) == i) {
                            item[i].oneFlag = false
                        } else {
                            item[i].oneFlag = true
                        }
                    };

                })
            })
        }
    })
</script>

</html>